package com.kbbywyclient.ui.contarct;

import com.kbbywyclient.data.entity.LoansTableMenu;
import com.kbbywyclient.data.entity.MyProduct;
import com.kbbywyclient.data.entity.ProductLib;
import com.kbbywyclient.data.model.base.BaseModel;
import com.kbbywyclient.ui.contarct.base.IBaseView;

import java.util.List;

/**
 * Created by FHW
 * on 2017/5/10
 */

public class ProductManageContract {

    public interface View extends IBaseView {

        //我的产品列表,查找及翻页功能
        void loadSucMyproduct(List<MyProduct> myProductList);

        void loadFaiMyproduct(String errorMsg);

        void setAdapterOrNotify(List<MyProduct> myProductList);

        void setNoMore();

        void setMoreComplete();

        //推荐或取消
        void loadSucMyRecommend(BaseModel baseModel);

        void loadFaiMyRecommend(String errorMsg);

        //删除产品
        void loadSucMyDel(BaseModel baseModel);

        void loadFaiMyDel(String errorMsg);

        //产品库
        void loadSucProductLib(List<ProductLib> productLibList);

        void loadFaiProductLib(String errorMsg);

        void setAdapterOrNotifyLib(List<ProductLib> productLibList);

        void setNoMoreLib();

        void setMoreCompleteLib();

        //贷款用途表筛选菜单
        void loadSucMenu(LoansTableMenu loansTableMenu);

        void loadFaiMenu(String errorMsg);

        //添加产品
        void loadSucAdd(BaseModel baseModel);

        void loadFaiMyAdd(String errorMsg);

    }

    public interface Presenter {

        //我的产品
        void getMyproductList(boolean isClean, String SalesID, String IsVerified, String KeyWord);

        void getMyRecommend(String SalesID, String ProductLoansID, String Recommend);

        void getMyDel(String SalesID, String ProductLoansID);

        //产品库
        void getProductLib(boolean isClean, String SalesID, String ParentUsage, String KeyWord);

        void getloansOrdersMenu(String SalesID);

        void getProductAdd(String SalesID, String ProductLoansID);

    }
}
